package com.dyh.quickdemo.demos.spy;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Stack;

/*
@Author=Joey Wheeler
@Date=2020/12/4 11:26
*/
@Setter@Getter
public class SpyContext {
  //  private LinkedList<Spy> spyChain;
    public StringBuffer report;
    public Stack<Spy> stack;
    public LinkedList<String> printChain;
    public Map<String,Long> spyTimer;

    public SpyContext(){
        this.stack = new Stack<>();
        this.printChain = new LinkedList<>();
        this.spyTimer = new HashMap<>();
    }


//    public SpyContext(){
//        this.spyChain = new LinkedList<>();
//    }
//    public void add(Spy spy){
//        this.spyChain.add(spy);
//    }
}
